﻿using commonManagement.Infrstructre;
using ERPPublic;
using ERPPublic.eneity;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace CommonManagement.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        protected readonly IMediator mediatorp;
        public SqlSugarDbcontext db;
        public ValuesController(SqlSugarDbcontext db)
        {
            this.db = db;
        }
        [HttpGet]
        public string InitDataBase()
        {
            db.CreateDatabase();
            return "ok";
        }
      
    }
}
